﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/default.Master" Title="系统参数定义" CodeBehind="Basecode.aspx.cs" Inherits="Webcar.SysManage.Basecode" %>

<%@ Register Src="../Controls/UProgress.ascx" TagName="UProgress" TagPrefix="uc2" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>

<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<div id="BaseCode" > 
 <uc1:NaviBar ID="NaviBar1" runat="server" />
    <ContentTemplate>
        
        <table width="100%">
        <tr>
        <td width="120px" class="div_taobao" style="text-align:center"><asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" >
            <ItemTemplate>
            <div class="GroupList">
              <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Default/image2/top2.gif" />
              <br />
              <asp:LinkButton ID="EditBtn" runat="server" CausesValidation="False" CommandName="Detail" 
              CommandArgument='<%# Bind("basekind") %>'
                 Text='<%# Bind("basename") %>'></asp:LinkButton>
              </div>
            </ItemTemplate>
        </asp:Repeater></td>
        <td valign="top">
        <div class="div_taobao_pic">
            <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
         </div>
          <hr class="line_blue"/>
    <asp:GridView ID="GridView1" runat="server" SkinID="gridviewSkin" Width="100%" AutoGenerateColumns="False" OnRowEditing="gv_RowEditing" OnRowCancelingEdit="gv_RowCancelingEdit" OnRowDeleting="gv_RowDeleting" OnRowUpdating="gv_RowUpdating" DataKeyNames="base_code,base_kind" OnRowDataBound="gv_RowDataBound" OnRowCommand="gv_RowCommand">
        <Columns>
             <asp:BoundField HeaderText="序号" ReadOnly="True" > 
             <ItemStyle CssClass="tableColumns" HorizontalAlign="Center" Width="30px" />
                <HeaderStyle CssClass="tableColumns" />
                </asp:BoundField>
            <asp:TemplateField HeaderText="参数名称">
                <EditItemTemplate>
                    <asp:TextBox Width="97%" ID="tbBaseName" runat="server" Text='<%# Bind("base_name") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemStyle CssClass="tableColumns" />
                <HeaderStyle CssClass="tableColumns" />
                <ItemTemplate>
                <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Default/image2/up.gif" />
                    <asp:Label ID="lblBaseName" runat="server" Text='<%# Bind("base_name") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            
           <asp:TemplateField ShowHeader="False" HeaderText="操作">
                <EditItemTemplate>
                  <asp:LinkButton ID="UpdateBtn" runat="server" CausesValidation="True" CommandName="Update"
                    Text="更新"></asp:LinkButton>
                  <asp:LinkButton ID="CancelBtn" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="取消"></asp:LinkButton>
                  
                      
                </EditItemTemplate>
                <ItemTemplate>
                  <asp:LinkButton ID="EditBtn" runat="server" CausesValidation="False" CommandName="Edit"
                    Text="编辑"></asp:LinkButton>
                  <asp:LinkButton ID="DeleteBtn" runat="server" CausesValidation="False" CommandName="Delete"
                    Text="删除"></asp:LinkButton>
                    
                  <asp:LinkButton ID="Detailbtn" runat="server" CausesValidation="False" CommandName="Detail" CommandArgument='<%# Bind("base_code") %>'
                    Text="查看车型明细"></asp:LinkButton>  
                </ItemTemplate>
                <ItemStyle CssClass="tableColumns" Width="150px" HorizontalAlign="Center" />
                <HeaderStyle CssClass="tableColumns" />
            </asp:TemplateField>
           
        </Columns>
    </asp:GridView>
                
     <hr class="line_blue"/>           
            
    <div class="pager">
        <div class="AddArea">
             <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">增加参数</asp:LinkButton>
        </div>
        <div class="pageArea">
            
            <cc1:WebPager Width="350px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
        </div>
    </div>
    <br />
    <asp:Panel ID="Panel1" runat="server"  Width="100%">
    <div class="div_taobao">
     参数名称：<asp:TextBox ID="tbBaseName" runat="server"  SkinID="textbox"></asp:TextBox>
    &nbsp;
        <asp:Button ID="Button1" runat="server" Text="保存" Width="54px" SkinID="default_button" OnClick="Button1_Click"/>
        </div>
        </asp:Panel>
           
           </td>
        
        </tr>
        </table>
     </ContentTemplate>
    <uc2:UProgress ID="UProgress1" runat="server" />
</div>
</asp:Content>
